package com.example.demo.mapper;

import com.example.demo.pojo.Draft;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-02-21
 * Time: 10:37
 */
@Mapper
public interface DraftMapper {
     int saveDraft(Integer uid, String title, String content);

     List<Draft> getDraftList(Integer id);

     Draft detailDraft(Integer aid);

     int updateArticle(Integer aid, Integer uid, String title, String content);

     int deleteDraft(Integer aid);
}
